import { requestClient } from '#/api/request';

export namespace Barcode {
  export interface Params {
    attr1: null;
  }
  export interface Row {
    searchValue: null;
    createBy: string;
    createTime: Date;
    updateBy: string;
    updateTime: null;
    remark: string;
    params: Params;
    barcodeId: number;
    barcodeFormart: string;
    barcodeType: string;
    barcodeContent: string;
    bussinessId: number;
    bussinessCode: string;
    bussinessName: string;
    barcodeUrl: null;
    enableFlag: string;
    attr2: null;
    attr3: number;
    attr4: number;
    attr1: boolean | null | string;
  }
  export interface GetListParams {
    pageNum: number;
    pageSize: number;
  }
  export interface GetListReturn {
    total: number;
    rows: Row[];
    code: number;
    msg: string;
  }
}

// 获取列表
export const getBarcodeTableList = (params: Barcode.GetListParams) =>
  requestClient.get<Barcode.GetListReturn>('/mes/wm/barcode/list', {
    params,
  });
